<div class="container">
	<div class="row row-offcanvas row-offcanvas-right">
		<div class="col-xs-6 col-sm-3">
			<div class="well sidebar-nav">
				<ul class="nav">
					<li><a href="<?= WEB_PATH?>/admin/phone">Manage phone</a></li>
					<li><a href="<?= WEB_PATH?>/admin/catagory">Manage catagory</a></li>
					<li><a href="<?= WEB_PATH?>/admin/feedback">Manage feedback</a></li>
					<li><a href="<?= WEB_PATH?>/admin/banner">Manage banner</a></li>
					<li><a href="<?= WEB_PATH?>/admin/order">Manage order</a></li>
				</ul>
			</div>
		</div>
		<!--/span-->

		<div class="col-xs-12 col-sm-9 sidebar-offcanvas" id="sidebar">
			<a class="btn btn-success" href="<?=WEB_PATH?>/admin/phone/add">Thêm sản phẩm</a>
			<table class="table">
				<tr>
					<td>ID</td>
					<td>Hình ảnh</td>
					<td>Tên sản phẩm</td>
					<td>Hãng</td>
					<td>Giá</td>
					<td colspan="3">Thao tác</td>
				</tr>
				<?php foreach($this->phones as $index => $phone) {?>
				<tr class="<?= $index % 2 == 0? 'success' : ''?>">
					<td> <?= $phone->id?>	</td>
					<td> <div class="product-small-image"><img src="<?=WEB_PATH?>/public/imgs/<?=$phone->image_url?>" class="img-max-width"></div></td>				
					<td> <?=$phone->name?></td>
					<td> <?=$phone->findParentRow('Application_Model_DbTable_Catagory')->name?></td>			
					<td> <?=$phone->price?> </td>				
					<td> <a href="<?=WEB_PATH?>/admin/phone/detail/id/<?=$phone->id?>">Chi tiết</a> </td>				
					<td> <a href="<?=WEB_PATH?>/admin/phone/edit/id/<?=$phone->id?>">Chỉnh sửa</a> </td>				
					<td> <a href="<?=WEB_PATH?>/admin/phone/delete/id/<?=$phone->id?>">Xóa</a> </td>				
				</tr>
				<?php }?>
			</table>
			<!--/.well -->
		</div>
		<!--/span-->

	</div>
	<!--/row-->
	
	
	<hr>

	<footer>
		<p>&copy; Company 2013</p>
	</footer>
</div>

<!--/.container-->